package com.hpf.community.pojo;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * ${table.comment}实体类  与数据库一一对应,请勿轻易修改
 * </p>
 *
 * @author huangpengfei
 * @version 2020年04月04日---22:57:14
 * @description
 */
@Data
public class Goods extends Model<Goods> {

    private static final long serialVersionUID = 1L;

    public static final String ID = "ID";

    public static final String DESCRI = "descri";

    public static final String PRICE = "price";

    public static final String GOOD = "good";

    public static final String IMAGE = "image";

    public static final String TYPE = "type";


    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("descri")
    private String descri;

    @TableField("price")
    private Double price;

    @TableField("good")
    private Integer good;

    @TableField("image")
    private String image;

    @TableField("type")
    private String type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
